"""
应用入口点
"""
import os
from app import create_app

app = create_app()

if __name__ == '__main__':
    # 确保上传目录存在
    upload_folder = os.path.join(os.getcwd(), 'uploads')
    if not os.path.exists(upload_folder):
        os.makedirs(upload_folder)
    
    app.run(debug=True, host='0.0.0.0', port=5000)
